﻿using NUnit.Framework;

namespace BruteForceSerializer.Tests
{
    [TestFixture]
    public class test_Serializer
    {
        [Test]
        public void Integrationstest() {
            var sut = new Serializer();

            var text = sut.Serialize(42);

            Assert.AreEqual(@"{
  ""_Id"": 0,
  ""_Type"": ""Int32"",
  ""m_value"": 42
}", text);
        }

        [Test]
        public void Null_kann_serialisiert_werden() {
            var sut = new Serializer();

            var text = sut.Serialize(null);


            Assert.AreEqual("null", text);
        }
    }
}